<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>BrainTrain: Util/ModifyMaterialVisitor.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">BrainTrain
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_modify_material_visitor_8cpp_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">ModifyMaterialVisitor.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_modify_material_visitor_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#include &quot;../header/ModifyMaterialVisitor.h&quot;</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#include &lt;osg/Material&gt;</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="keyword">namespace </span>brtr{</div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;</div>
<div class="line"><a name="l00005"></a><span class="lineno"><a class="line" href="classbrtr_1_1_modify_material_visitor.html#a240eed8002f7c81d8cd63aaaf4037381">    5</a></span>&#160;    <a class="code" href="classbrtr_1_1_modify_material_visitor.html#a240eed8002f7c81d8cd63aaaf4037381">ModifyMaterialVisitor::ModifyMaterialVisitor</a>() :</div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;        _ambientFlag(false),</div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;        _diffuseFlag(false), </div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;        _specularFlag(false), </div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;        _shininessFlag(false) {</div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;        setTraversalMode(osg::NodeVisitor::TRAVERSE_ALL_CHILDREN);</div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;    }</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div>
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="classbrtr_1_1_modify_material_visitor.html#a74bf42fdfffbc1f7d433c1199f563ccb">   14</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classbrtr_1_1_modify_material_visitor.html#a74bf42fdfffbc1f7d433c1199f563ccb">ModifyMaterialVisitor::apply</a>(osg::Geode&amp; geode) {</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i &lt; geode.getNumDrawables(); ++i) {</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;            osg::Drawable* drawable = geode.getDrawable(i);</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;            osg::Material* materialPtr = <span class="keyword">dynamic_cast&lt;</span>osg::Material*<span class="keyword">&gt;</span>(drawable-&gt;getOrCreateStateSet()-&gt;getAttribute(osg::StateAttribute::Type::MATERIAL));</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;            <span class="keywordflow">if</span> (materialPtr) {</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;                osg::Material&amp; material = *materialPtr;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;                <span class="keywordflow">if</span> (<a class="code" href="classbrtr_1_1_modify_material_visitor.html#a351e4cfeca41aa6f746956661930f994">_ambientFlag</a>)</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;                    material.setAmbient(osg::Material::FRONT_AND_BACK, <a class="code" href="classbrtr_1_1_modify_material_visitor.html#a1cffff6daf689c23a4e9680cd8f1441b">_ambient</a>);</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;                <span class="keywordflow">if</span> (<a class="code" href="classbrtr_1_1_modify_material_visitor.html#a154ad99cb3796be6d04347cdbfb66e10">_specularFlag</a>)</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;                    material.setSpecular(osg::Material::FRONT_AND_BACK, <a class="code" href="classbrtr_1_1_modify_material_visitor.html#a4cbbdf6ecd85ec563839545fc328fbfe">_specular</a>);</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;                <span class="keywordflow">if</span> (<a class="code" href="classbrtr_1_1_modify_material_visitor.html#a8b30ec1a8b93422fc168597a47425041">_shininessFlag</a>)</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;                    material.setShininess(osg::Material::FRONT_AND_BACK, <a class="code" href="classbrtr_1_1_modify_material_visitor.html#a297f5208848d0bba92653bbd15908f68">_shininess</a>);</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;                <span class="keywordflow">if</span> (<a class="code" href="classbrtr_1_1_modify_material_visitor.html#a511c43fcd16d68855e6e63ca3ec1a84e">_diffuseFlag</a>)</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;                    material.setDiffuse(osg::Material::FRONT_AND_BACK, <a class="code" href="classbrtr_1_1_modify_material_visitor.html#a33e06870644e892df2ac9af4c5bbfbd8">_diffuse</a>);</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;            }</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;        }</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    }</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="classbrtr_1_1_modify_material_visitor.html#ac79c5aeaa29e381e46e130c088966ad9">   33</a></span>&#160;    osg::Vec4 <a class="code" href="classbrtr_1_1_modify_material_visitor.html#ac79c5aeaa29e381e46e130c088966ad9">ModifyMaterialVisitor::getDiffuse</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classbrtr_1_1_modify_material_visitor.html#a33e06870644e892df2ac9af4c5bbfbd8">_diffuse</a>;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    }</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classbrtr_1_1_modify_material_visitor.html#a17748f6a7f41431832da66dd65e1c41f">   37</a></span>&#160;    <a class="code" href="classbrtr_1_1_modify_material_visitor.html">ModifyMaterialVisitor</a>&amp; <a class="code" href="classbrtr_1_1_modify_material_visitor.html#a17748f6a7f41431832da66dd65e1c41f">ModifyMaterialVisitor::setDiffuse</a>(osg::Vec4 val) {</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;        <a class="code" href="classbrtr_1_1_modify_material_visitor.html#a511c43fcd16d68855e6e63ca3ec1a84e">_diffuseFlag</a> = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;        <a class="code" href="classbrtr_1_1_modify_material_visitor.html#a33e06870644e892df2ac9af4c5bbfbd8">_diffuse</a> = val; </div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;        <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    }</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classbrtr_1_1_modify_material_visitor.html#a5be2b7553a9ecbe1c6d50425119f7e9e">   43</a></span>&#160;    osg::Vec4 <a class="code" href="classbrtr_1_1_modify_material_visitor.html#a5be2b7553a9ecbe1c6d50425119f7e9e">ModifyMaterialVisitor::getSpecular</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classbrtr_1_1_modify_material_visitor.html#a4cbbdf6ecd85ec563839545fc328fbfe">_specular</a>;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    }</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="classbrtr_1_1_modify_material_visitor.html#a7a8a5a938799c5193645d86aa6dc6a7c">   47</a></span>&#160;    <a class="code" href="classbrtr_1_1_modify_material_visitor.html">ModifyMaterialVisitor</a>&amp; <a class="code" href="classbrtr_1_1_modify_material_visitor.html#a7a8a5a938799c5193645d86aa6dc6a7c">ModifyMaterialVisitor::setSpecular</a>(osg::Vec4 val) {</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        <a class="code" href="classbrtr_1_1_modify_material_visitor.html#a4cbbdf6ecd85ec563839545fc328fbfe">_specular</a> = val; </div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;        <a class="code" href="classbrtr_1_1_modify_material_visitor.html#a154ad99cb3796be6d04347cdbfb66e10">_specularFlag</a> = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;        <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    }</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="classbrtr_1_1_modify_material_visitor.html#a2a87910d4f316359eb6bf75620edf947">   53</a></span>&#160;    osg::Vec4 <a class="code" href="classbrtr_1_1_modify_material_visitor.html#a2a87910d4f316359eb6bf75620edf947">ModifyMaterialVisitor::getAmbient</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classbrtr_1_1_modify_material_visitor.html#a1cffff6daf689c23a4e9680cd8f1441b">_ambient</a>;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    }</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="classbrtr_1_1_modify_material_visitor.html#adfaa00524e765fdf3ddc5968187623cd">   57</a></span>&#160;    <a class="code" href="classbrtr_1_1_modify_material_visitor.html">ModifyMaterialVisitor</a>&amp; <a class="code" href="classbrtr_1_1_modify_material_visitor.html#adfaa00524e765fdf3ddc5968187623cd">ModifyMaterialVisitor::setAmbient</a>(osg::Vec4 val) {</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        <a class="code" href="classbrtr_1_1_modify_material_visitor.html#a1cffff6daf689c23a4e9680cd8f1441b">_ambient</a> = val;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;        <a class="code" href="classbrtr_1_1_modify_material_visitor.html#a351e4cfeca41aa6f746956661930f994">_ambientFlag</a> = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    }</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="classbrtr_1_1_modify_material_visitor.html#a68f37fe264bd8f51e1d7a37f8048b103">   63</a></span>&#160;    <span class="keywordtype">double</span> <a class="code" href="classbrtr_1_1_modify_material_visitor.html#a68f37fe264bd8f51e1d7a37f8048b103">ModifyMaterialVisitor::getShininess</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classbrtr_1_1_modify_material_visitor.html#a297f5208848d0bba92653bbd15908f68">_shininess</a>;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    }</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="classbrtr_1_1_modify_material_visitor.html#a698aa0c31f8c5add503d47bc9898eec3">   67</a></span>&#160;    <a class="code" href="classbrtr_1_1_modify_material_visitor.html">ModifyMaterialVisitor</a>&amp; <a class="code" href="classbrtr_1_1_modify_material_visitor.html#a698aa0c31f8c5add503d47bc9898eec3">ModifyMaterialVisitor::setShininess</a>(<span class="keywordtype">double</span> val) {</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        <a class="code" href="classbrtr_1_1_modify_material_visitor.html#a297f5208848d0bba92653bbd15908f68">_shininess</a> = val;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        <a class="code" href="classbrtr_1_1_modify_material_visitor.html#a8b30ec1a8b93422fc168597a47425041">_shininessFlag</a> = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;        <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    }</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;}</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;</div>
<div class="ttc" id="classbrtr_1_1_modify_material_visitor_html_adfaa00524e765fdf3ddc5968187623cd"><div class="ttname"><a href="classbrtr_1_1_modify_material_visitor.html#adfaa00524e765fdf3ddc5968187623cd">brtr::ModifyMaterialVisitor::setAmbient</a></div><div class="ttdeci">ModifyMaterialVisitor &amp; setAmbient(osg::Vec4 val)</div><div class="ttdef"><b>Definition:</b> <a href="_modify_material_visitor_8cpp_source.html#l00057">ModifyMaterialVisitor.cpp:57</a></div></div>
<div class="ttc" id="classbrtr_1_1_modify_material_visitor_html_a17748f6a7f41431832da66dd65e1c41f"><div class="ttname"><a href="classbrtr_1_1_modify_material_visitor.html#a17748f6a7f41431832da66dd65e1c41f">brtr::ModifyMaterialVisitor::setDiffuse</a></div><div class="ttdeci">ModifyMaterialVisitor &amp; setDiffuse(osg::Vec4 val)</div><div class="ttdef"><b>Definition:</b> <a href="_modify_material_visitor_8cpp_source.html#l00037">ModifyMaterialVisitor.cpp:37</a></div></div>
<div class="ttc" id="classbrtr_1_1_modify_material_visitor_html_a1cffff6daf689c23a4e9680cd8f1441b"><div class="ttname"><a href="classbrtr_1_1_modify_material_visitor.html#a1cffff6daf689c23a4e9680cd8f1441b">brtr::ModifyMaterialVisitor::_ambient</a></div><div class="ttdeci">osg::Vec4 _ambient</div><div class="ttdef"><b>Definition:</b> <a href="_modify_material_visitor_8h_source.html#l00031">ModifyMaterialVisitor.h:31</a></div></div>
<div class="ttc" id="classbrtr_1_1_modify_material_visitor_html_a7a8a5a938799c5193645d86aa6dc6a7c"><div class="ttname"><a href="classbrtr_1_1_modify_material_visitor.html#a7a8a5a938799c5193645d86aa6dc6a7c">brtr::ModifyMaterialVisitor::setSpecular</a></div><div class="ttdeci">ModifyMaterialVisitor &amp; setSpecular(osg::Vec4 val)</div><div class="ttdef"><b>Definition:</b> <a href="_modify_material_visitor_8cpp_source.html#l00047">ModifyMaterialVisitor.cpp:47</a></div></div>
<div class="ttc" id="classbrtr_1_1_modify_material_visitor_html_a68f37fe264bd8f51e1d7a37f8048b103"><div class="ttname"><a href="classbrtr_1_1_modify_material_visitor.html#a68f37fe264bd8f51e1d7a37f8048b103">brtr::ModifyMaterialVisitor::getShininess</a></div><div class="ttdeci">double getShininess() const </div><div class="ttdef"><b>Definition:</b> <a href="_modify_material_visitor_8cpp_source.html#l00063">ModifyMaterialVisitor.cpp:63</a></div></div>
<div class="ttc" id="classbrtr_1_1_modify_material_visitor_html_a698aa0c31f8c5add503d47bc9898eec3"><div class="ttname"><a href="classbrtr_1_1_modify_material_visitor.html#a698aa0c31f8c5add503d47bc9898eec3">brtr::ModifyMaterialVisitor::setShininess</a></div><div class="ttdeci">ModifyMaterialVisitor &amp; setShininess(double val)</div><div class="ttdef"><b>Definition:</b> <a href="_modify_material_visitor_8cpp_source.html#l00067">ModifyMaterialVisitor.cpp:67</a></div></div>
<div class="ttc" id="classbrtr_1_1_modify_material_visitor_html_a2a87910d4f316359eb6bf75620edf947"><div class="ttname"><a href="classbrtr_1_1_modify_material_visitor.html#a2a87910d4f316359eb6bf75620edf947">brtr::ModifyMaterialVisitor::getAmbient</a></div><div class="ttdeci">osg::Vec4 getAmbient() const </div><div class="ttdef"><b>Definition:</b> <a href="_modify_material_visitor_8cpp_source.html#l00053">ModifyMaterialVisitor.cpp:53</a></div></div>
<div class="ttc" id="classbrtr_1_1_modify_material_visitor_html_a74bf42fdfffbc1f7d433c1199f563ccb"><div class="ttname"><a href="classbrtr_1_1_modify_material_visitor.html#a74bf42fdfffbc1f7d433c1199f563ccb">brtr::ModifyMaterialVisitor::apply</a></div><div class="ttdeci">void apply(osg::Geode &amp;geode)</div><div class="ttdef"><b>Definition:</b> <a href="_modify_material_visitor_8cpp_source.html#l00014">ModifyMaterialVisitor.cpp:14</a></div></div>
<div class="ttc" id="classbrtr_1_1_modify_material_visitor_html_a240eed8002f7c81d8cd63aaaf4037381"><div class="ttname"><a href="classbrtr_1_1_modify_material_visitor.html#a240eed8002f7c81d8cd63aaaf4037381">brtr::ModifyMaterialVisitor::ModifyMaterialVisitor</a></div><div class="ttdeci">ModifyMaterialVisitor()</div><div class="ttdef"><b>Definition:</b> <a href="_modify_material_visitor_8cpp_source.html#l00005">ModifyMaterialVisitor.cpp:5</a></div></div>
<div class="ttc" id="classbrtr_1_1_modify_material_visitor_html_a5be2b7553a9ecbe1c6d50425119f7e9e"><div class="ttname"><a href="classbrtr_1_1_modify_material_visitor.html#a5be2b7553a9ecbe1c6d50425119f7e9e">brtr::ModifyMaterialVisitor::getSpecular</a></div><div class="ttdeci">osg::Vec4 getSpecular() const </div><div class="ttdef"><b>Definition:</b> <a href="_modify_material_visitor_8cpp_source.html#l00043">ModifyMaterialVisitor.cpp:43</a></div></div>
<div class="ttc" id="classbrtr_1_1_modify_material_visitor_html_a511c43fcd16d68855e6e63ca3ec1a84e"><div class="ttname"><a href="classbrtr_1_1_modify_material_visitor.html#a511c43fcd16d68855e6e63ca3ec1a84e">brtr::ModifyMaterialVisitor::_diffuseFlag</a></div><div class="ttdeci">bool _diffuseFlag</div><div class="ttdef"><b>Definition:</b> <a href="_modify_material_visitor_8h_source.html#l00036">ModifyMaterialVisitor.h:36</a></div></div>
<div class="ttc" id="classbrtr_1_1_modify_material_visitor_html_a8b30ec1a8b93422fc168597a47425041"><div class="ttname"><a href="classbrtr_1_1_modify_material_visitor.html#a8b30ec1a8b93422fc168597a47425041">brtr::ModifyMaterialVisitor::_shininessFlag</a></div><div class="ttdeci">bool _shininessFlag</div><div class="ttdef"><b>Definition:</b> <a href="_modify_material_visitor_8h_source.html#l00035">ModifyMaterialVisitor.h:35</a></div></div>
<div class="ttc" id="classbrtr_1_1_modify_material_visitor_html_a154ad99cb3796be6d04347cdbfb66e10"><div class="ttname"><a href="classbrtr_1_1_modify_material_visitor.html#a154ad99cb3796be6d04347cdbfb66e10">brtr::ModifyMaterialVisitor::_specularFlag</a></div><div class="ttdeci">bool _specularFlag</div><div class="ttdef"><b>Definition:</b> <a href="_modify_material_visitor_8h_source.html#l00034">ModifyMaterialVisitor.h:34</a></div></div>
<div class="ttc" id="classbrtr_1_1_modify_material_visitor_html_a297f5208848d0bba92653bbd15908f68"><div class="ttname"><a href="classbrtr_1_1_modify_material_visitor.html#a297f5208848d0bba92653bbd15908f68">brtr::ModifyMaterialVisitor::_shininess</a></div><div class="ttdeci">double _shininess</div><div class="ttdef"><b>Definition:</b> <a href="_modify_material_visitor_8h_source.html#l00032">ModifyMaterialVisitor.h:32</a></div></div>
<div class="ttc" id="classbrtr_1_1_modify_material_visitor_html_a351e4cfeca41aa6f746956661930f994"><div class="ttname"><a href="classbrtr_1_1_modify_material_visitor.html#a351e4cfeca41aa6f746956661930f994">brtr::ModifyMaterialVisitor::_ambientFlag</a></div><div class="ttdeci">bool _ambientFlag</div><div class="ttdef"><b>Definition:</b> <a href="_modify_material_visitor_8h_source.html#l00033">ModifyMaterialVisitor.h:33</a></div></div>
<div class="ttc" id="classbrtr_1_1_modify_material_visitor_html_a4cbbdf6ecd85ec563839545fc328fbfe"><div class="ttname"><a href="classbrtr_1_1_modify_material_visitor.html#a4cbbdf6ecd85ec563839545fc328fbfe">brtr::ModifyMaterialVisitor::_specular</a></div><div class="ttdeci">osg::Vec4 _specular</div><div class="ttdef"><b>Definition:</b> <a href="_modify_material_visitor_8h_source.html#l00030">ModifyMaterialVisitor.h:30</a></div></div>
<div class="ttc" id="classbrtr_1_1_modify_material_visitor_html_a33e06870644e892df2ac9af4c5bbfbd8"><div class="ttname"><a href="classbrtr_1_1_modify_material_visitor.html#a33e06870644e892df2ac9af4c5bbfbd8">brtr::ModifyMaterialVisitor::_diffuse</a></div><div class="ttdeci">osg::Vec4 _diffuse</div><div class="ttdef"><b>Definition:</b> <a href="_modify_material_visitor_8h_source.html#l00029">ModifyMaterialVisitor.h:29</a></div></div>
<div class="ttc" id="classbrtr_1_1_modify_material_visitor_html"><div class="ttname"><a href="classbrtr_1_1_modify_material_visitor.html">brtr::ModifyMaterialVisitor</a></div><div class="ttdoc">Visitor for altering the material attributes, mainly used for objects craeted with blender...</div><div class="ttdef"><b>Definition:</b> <a href="_modify_material_visitor_8h_source.html#l00014">ModifyMaterialVisitor.h:14</a></div></div>
<div class="ttc" id="classbrtr_1_1_modify_material_visitor_html_ac79c5aeaa29e381e46e130c088966ad9"><div class="ttname"><a href="classbrtr_1_1_modify_material_visitor.html#ac79c5aeaa29e381e46e130c088966ad9">brtr::ModifyMaterialVisitor::getDiffuse</a></div><div class="ttdeci">osg::Vec4 getDiffuse() const </div><div class="ttdef"><b>Definition:</b> <a href="_modify_material_visitor_8cpp_source.html#l00033">ModifyMaterialVisitor.cpp:33</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_d4f7a754e06480f800a6fab4b04999ce.html">Util</a></li><li class="navelem"><a class="el" href="_modify_material_visitor_8cpp.html">ModifyMaterialVisitor.cpp</a></li>
    <li class="footer">Generated on Thu Jul 17 2014 01:40:24 for BrainTrain by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
  </ul>
</div>
</body>
</html>
